package com.wanpinghui.wphlibrary.model.business;


import com.wanpinghui.wphlibrary.model.business.bean.CommentBean;
import com.wanpinghui.wphlibrary.model.business.bean.DynamicBean;
import com.wanpinghui.wphlibrary.model.business.bean.DynamicPageData;
import com.wanpinghui.wphlibrary.model.business.bean.SaveDynamic;
import com.wanpinghui.wphlibrary.model.business.bean.ThumbUpBean;
import com.wanpinghui.wphlibrary.model.user.bean.AreaBean;
import com.wanpinghui.wphlibrary.photovideo.bean.BaseUrlBean;
import com.wanpinghui.wphlibrary.photovideo.bean.UploadFileBean;

import java.util.List;

import retrofit.callback.YRequestCallback;

/***
 * 功能描述:
 * 作者:qiujialiu
 * 时间:2018/1/23
 ***/

public interface BusinessService {

    void getAreaEngineerInfo(YRequestCallback<List<AreaBean>> callback);

    void saveDynamic(SaveDynamic dynamic, YRequestCallback<Object> callback);

    void  uploadPictures(List<UploadFileBean> uploadFileBeanList, YRequestCallback<List<BaseUrlBean>> callback);

    void searchLatelyDynamicList(long user_id,YRequestCallback<List<DynamicBean>> callback);

    void commentDynamic(int dynamicId, int userId, String content, YRequestCallback<List<CommentBean>> callback);

    void addOrCancelLike(int dynamicId, boolean like, YRequestCallback<List<ThumbUpBean>> callback);

    void getAllDynamic(long lastTime, YRequestCallback<DynamicPageData> callback);

    void getPersonDynamic(int userId, long lastTime, YRequestCallback<DynamicPageData> callback);

    void deleteComment(int commentId, YRequestCallback<List<CommentBean>> callback);

    void deleteDynamic(int dynamicId, YRequestCallback<Object> callback);

}
